package week1.day4;

/**
 * @Author fengzihao
 * @Date 2024-04-18 19:39
 */
public class MaximizeAnUnknownNumberOfIntegers {
    public static int getMax(int... numbers){
        int max = numbers[0];
        for (int i = 1; i < numbers.length; i++) {
            if (numbers[i]>max)
                max = numbers[i];
        }
        return max;
    }
}
